import axios from 'axios';
// import store from '@/store';
// import router from '@/router'

const axiosInstance = axios.create({
    timeout: 30000,
    withCredentials: false
})

axiosInstance.interceptors.request.use(
    config => {  
        // 在请求头中添加自定义字段  
        config.headers['tenant-id'] = '2c9616b68634e19f018634eeefec010c '; 
        config.headers['X-Access-Token'] = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJsb2dpblR5cGUiOjEsImV4cCI6MTcyNjI1ODg3OSwicGxhdGZvcm0iOjIsInVzZXJuYW1lIjoiMTUwNzMxNzEzMjAifQ.hsW2zoK0NOVqAeoHrV-mORCVdp3gBRlsH1mcIILe7V8';
        config.headers['Sys-Access-Token'] = 'm7mSzYLFvbbFDU+d4fXFwg==';
        config.headers["X-SYSTEM"] = "saas";
        return config;
      },  
      error => {  
        // 对请求错误做些什么  
        return Promise.reject(error);  
      }  
)

axiosInstance.interceptors.response.use()

export default axiosInstance